<?php
// http://www.onlywire.com/onlywireapi
$ch = curl_init();
$url = urlencode("http://www.google.com");
$title = urlencode("Google");
$comments = urlencode("Testing OnlyWire Integration");
$tags = urlencode("search spider crawl test");
$services = urlencode("facebook,delicious");
$username= "your_username";
$password= "your_password";

$query = "http://www.onlywire.com/api/add?url=".$url."&title=".$title."&tags=".$tags."&comments=".$comments."&services=".$services;
curl_setopt($ch, CURLOPT_URL, $query);
curl_setopt($ch, CURLOPT_USERPWD, $username.":".$password);
$output = curl_exec($ch);
curl_close ($ch);

echo $output;
?>
